const invoiceColumns = {
  contract: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '客户姓名',
      dataIndex: 'customer_name',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '联系电话',
      dataIndex: 'phone',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '业务名称',
      dataIndex: 'business_name',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '合同/实付金额',
      dataIndex: 'amount',
      sorter: true
    },
    {
      title: '可开票金额',
      dataIndex: 'je',
      sorter: true
    },
    {
      title: '创建时间',
      dataIndex: 'created_at',
      sorter: true
    },
    {
      title: '合同审核时间',
      dataIndex: 'check_time',
      sorter: true
    }
  ],
  invoice: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { customRender: 'contract_no' }
    },
    {
      title: '顾问姓名',
      dataIndex: 'username',
      width: '100px'
    },
    // {
    //   title: '业务名称',
    //   dataIndex: 'tm_name',
    //   scopedSlots: { customRender: 'tm_name' }
    // },
    {
      title: '开票类型',
      dataIndex: 'invoice_type',
      scopedSlots: { customRender: 'invoice_type' }
    },
    // {
    //   title: '抬头类型',
    //   dataIndex: 'header_type',
    //   scopedSlots: { customRender: 'header_type' },
    //   width: '100px'
    // },
    // {
    //   title: '发票抬头',
    //   dataIndex: 'header',
    //   scopedSlots: { customRender: 'header' }
    // },
    {
      title: '开票金额',
      dataIndex: 'amount',
      scopedSlots: { customRender: 'amount' },
      sorter: true,
      width: '110px'
    },
    {
      title: '发票状态',
      dataIndex: 'status',
      scopedSlots: { customRender: 'status' },
      width: '100px'
    },
    {
      title: '开票公司',
      dataIndex: 'company_name',
      scopedSlots: { customRender: 'company_name' }
    },
    {
      title: '发票模版',
      dataIndex: 'file_url',
      scopedSlots: { customRender: 'file_url' }
    },
    // {
    //   title: '发票状态',
    //   dataIndex: 'status',
    //   scopedSlots: { customRender: 'status' },
    //   filters: [
    //     { text: '开票中', value: '1' },
    //     { text: '已开票', value: '2' },
    //     { text: '已作废', value: '3' },
    //     { text: '已冲红', value: '4' },
    //     { text: '退票中', value: '5' },
    //     { text: '作废中', value: '6' }
    //   ],
    //   filterMultiple: false
    // },
    {
      title: '申请时间',
      dataIndex: 'created_at'
    },
    {
      title: '申请备注',
      dataIndex: 'notes'
    },
    {
      title: '审核历史',
      dataIndex: 'is_check',
      scopedSlots: { customRender: 'is_check' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' },
      fixed: 'right',
      width: '140px'
    }
  ],
  express: [
    {
      title: '发票编号',
      dataIndex: 'invoice_no'
    },
    {
      title: '物流公司',
      dataIndex: 'express_name'
    },
    {
      title: '物流单号',
      dataIndex: 'express_no'
    }
  ],
  history: [
    {
      title: '操作人',
      dataIndex: 'username'
    },
    {
      title: '操作时间',
      dataIndex: 'created_at'
    },
    {
      title: '操作内容',
      dataIndex: 'check_result'
    },
    {
      title: '审核信息',
      dataIndex: 'notes'
    }
  ],
  contractColumn: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { customRender: 'contract_no' }
    },
    {
      title: '客户姓名',
      dataIndex: 'customer_name'
    },
    {
      title: '注册名称',
      dataIndex: 'tm_name',
      scopedSlots: { customRender: 'tm_name' }
    },
    {
      title: '联系电话',
      dataIndex: 'phone1',
      scopedSlots: { customRender: 'phone1' }
    },
    {
      title: '合同金额',
      dataIndex: 'amount',
      scopedSlots: { customRender: 'amount' }
    },
    {
      title: '可开票金额',
      scopedSlots: { customRender: 'amount' }
    },
    {
      title: '审核时间',
      dataIndex: 'check_time'
    },
    {
      title: '客户地址',
      dataIndex: 'address'
    }
  ]
}

export default invoiceColumns
